#include <stdio.h>

/* Takes an ecrypted file as it's
   first argument, and a file with
   a key in it as it's second. The
   file will be decrypted and printed
   to the screen */
int main(int argc, char **argv) {
    FILE *inc = fopen(argv[1], "r");
    FILE *key = fopen(argv[2], "r");
    char i, k;
    while((i = getc(inc)) != -1) {
        k = getc(key);
        printf("%c", i^k);
    }
}
